package com.library.common.enums;

import lombok.Getter;

/**
 * @ClassName: BookShelfStatus
 * @Description: 书架状态
 * @Author: hb
 * @Date: 2024/9/27
 */
@Getter
public enum BooksCopyStatus {
    /**
     * 正常
     */
    NORMAL("0", "正常"),

    /**
     * 借出
     */
    LEND("1", "借出"),

    /**
     * 未上架
     */
    NOT("2", "未上架");

    private final String code;
    private final String info;

    BooksCopyStatus(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public boolean equals(String source) {
        return this.getCode().equals(source);
    }

}
